<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb">
<head>
	<title><?php if( !empty( $title )){echo $title;}?></title> 
	<?php 
	$this->load->helper('url');	?>
	<base href="<?=base_url();?>">	
	<?php 
	function writeJSLink( $src ){
		echo "\r<script language='JavaScript' type='text/JavaScript' src='lib/js/$src' ></script>" ;
	}
	if( !empty( $scriptsoutput )){
		if( is_array( $scriptsoutput ) ){
			foreach ( $scriptsoutput as $script ){
				writeJSLink( $script );
			}
		}else {
			writeJSLink( $scriptsoutput );
		}
	}
	if(!empty($js_init_script)){
	echo"<script type=\"text/javascript\">$js_init_script</script>";	
	 }?> 
	
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="Content-Language" content="en-gb">
	<meta name="language" content="en-gb">
	<meta name="keywords" content="">
	<meta name="description" content="">	
	
	<link type="text/html" rel="home" href="/">
	<link type="image/vnd.microsoft.icon" rel="shortcut icon" href="lib/favicon.ico">
	
	<link type="text/css" rel="stylesheet" href="lib/css/style.css">
	<!--[if lte IE 6]><style type="text/css"> @import url("lib/css/ie6.css"); </style><![endif]-->
	<!--[if lte IE 7]><style type="text/css"> @import url("lib/css/ie7.css"); </style><![endif]-->
	<link type="text/css" rel="stylesheet" href="lib/css/gallery.css">
	<?php 
		function writeStyleLink( $src ){
			echo "\r<link type='text/css' rel='stylesheet' href='lib/css/$src.css'>" ;
	}
	if( !empty( $stylesoutput )){
		if( is_array( $stylesoutput ) ){
			foreach ( $stylesoutput as $stylesoutput ){
				writeStyleLink( $stylesoutput );
			}
		}else {
			writeStyleLink( $stylesoutput );
		}
	}
	
	?>
</head>
<?php 
if( !empty( $content )){
	echo $content;
}
?>
</html>